-- GENERATED SPELL FOR [Giselda the Crone] --


function spell0_18391(pUnit, Event) --@Mind Sear,n/a--
pUnit:FullCastSpellOnTarget(32000,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18391', 3000, 1)
end

function spell1_18391(pUnit, Event) --@Shadowform,Self--
pUnit:FullCastSpellOnTarget(16592,pUnit)
pUnit:RegisterEvent('Sorts_18391', 524, 1)
end

function Sorts_18391(pUnit, Event)
local choix_sorts_18391 = math.random(0, 1)
if choix_sorts_18391 == 0 then
pUnit:RegisterEvent('spell0_18391', 1, 1)
end
if choix_sorts_18391 == 1 then
pUnit:RegisterEvent('spell1_18391', 1, 1)
end
end

function mob18391_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18391', math.random(1500, 3000), 1)
end

function mob18391_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18391_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18391_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18391, 1, 'mob18391_Action')
RegisterUnitEvent(18391, 2, 'mob18391_Leave')
RegisterUnitEvent(18391, 3, 'mob18391_Kill')
RegisterUnitEvent(18391, 4, 'mob18391_Die')
